import request from '@/utils/request'
//导出是export default 以后 你导入的时候 必须取一个名字

export default {

  addChapter(chapter) {
    return request({
      url: `/chapter/addChapter`,
      method: 'post',
      data: chapter
    })
  },
  findChapter(courseId) {
    return request({
      url: `/chapter/findChapter/${courseId}`,
      method: 'post',
    })
  },
  getChapterList(courseId) {
    return request({
      url: `/chapter/findChapter/${courseId}`,
      method: 'post',
    })
  },
}

